import request from '@/utils/request'

export function getHistoryOrder(params) {
  return request({
    url:'/gym/calendar/admin',
    params,
    method:'get'
  })
}

export function changeCourtState(data) {
  return request({
    url:'/gym/calendar',
    data,
    method:'put'
  })
}

export function getCourtPrice(params) {
  return request({
    url:'/gym/price',
    params,
    method:'get'
  })
}
export function changeCourtPrice(data) {
  return request({
    url:'/gym/price',
    data,
    method:'put'
  })
}